#coding=utf-8
__author__ = 'czq'

#判断是不是板块管理员
def isClassManager(request,bbsClass):
    if request.user.is_superuser==1:
        return True
    adminUsers=bbsClass.adminUsers.all()#版主
    for admin in adminUsers:
                if request.user==admin:
                    return True
    return False

def isSiteManager(request):
    if request.user.is_superuser:
        return True
    return False

